'''
Created on Jan 29, 2011

@author: kafkef
'''

from individual import Individual

def dev_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.genotype != None and ind.phenotype == None

def eval_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.phenotype != None and ind.width == None and ind.height == None

def feedback_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.area != None